package com.hopu.mybatis.entity;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {

    private Integer id;
    private String username;
    private String password;
    private Integer point;
    private Integer type;

    //宠物集合属性
    private List<Pet> pets;

    public List<Pet> getPets() {
        return pets;
    }

    public void setPets(List<Pet> pets) {
        this.pets = pets;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public User(Integer id, String username, String password, Integer point, Integer type) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.point = point;
        this.type = type;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", point=" + point +
                ", type=" + type +
                '}';
    }
}
